package cn.wolfcode.shop.feign;

import cn.wolfcode.shop.common.Result;
import cn.wolfcode.shop.domain.Good;
import cn.wolfcode.shop.feign.hystrix.GoodFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "good-server", fallback = GoodFeignHystrix.class)
public interface GoodFeignApi {

    @RequestMapping("/good/queryByIds")
    Result<List<Good>> queryByIds(@RequestParam("ids") List<Long> ids);
}
